package com.twu.biblioteca.movie;

import com.twu.biblioteca.library.Catalogue;
import com.twu.biblioteca.item.Items;
import com.twu.biblioteca.transaction.TransactionManager;
import com.twu.biblioteca.user.User;

/**
 * Created by Enrico on 18/09/2014.
 */
public class Movies {

    Items<Movie> movies;

    public Movies(Catalogue catalogue) {
        movies = catalogue.getMovies();
    }

    public void transaction(User user) {
        showSection();
        TransactionManager transactionMgt = new TransactionManager(movies);
        transactionMgt.setup(user);
    }

    public void showSection() {
        String dashes = "------------------";
        System.out.println("\n" + dashes + " Movies Section " + dashes);
    }
}
